package com.xgst.lib.http

object ApiError {
    //数据是null
    val dataIsNull = Error(-1,"数据为null")
    //http status code 不是 成功
    val httpStatusCodeError = Error(-2,"请求服务错误，请重试")
    //未知异常
    val unknownException = Error(-3,"服务器异常")
}
data class Error(val errorCode:Int,val errorMsg:String)